<extend name="Public/base" />
<block name="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box">
                <div class="box-header">

                    <div class="row">
                        <div class="col-md-2"><h3 class="box-title">{$title}</h3></div>
                        <div class="col-md-offset-10"></div>
                    </div>


                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <form action="{:U('savePower')}" method="post">
                    <div class="row">
                        <volist name="allRule" id="vo" empty="$empty">
                            <div class="col-md-2">
                                <input type="checkbox" name="power[]" value="{$vo.id}" <?php if(in_array($vo['id'],$ownRule)) echo 'checked';?> >{$vo.title}</td>
                            </div>
                        </volist>
                    </div>
                    <div class="row">
                        <div class="col-md-offset-5">
                            <input type="hidden" name="roleId" value="{$roleId}">
                            <input type="submit" class="btn btn-info" value="保存">
                        </div>
                    </div>
                    </form>
                </div>
                <!-- /.box-body -->
            </div>
        </div>
    </div>

</block>
<block name="js">
    <script>

    </script>
</block>